/**
 * Copyright &copy; 2012-2016 civet All rights reserved.
 */
package cn.mcsys.myadmin.modules.viewer.service.impl;

import cn.mcsys.myadmin.modules.viewer.dao.AirViewerUserDao;
import cn.mcsys.myadmin.modules.viewer.entity.AirViewerUser;
import cn.mcsys.myadmin.modules.viewer.service.AirViewerUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 观众端用户Service
 * @author leopold
 * @version 2018-09-05
 */
@Service
public class AirViewerUserServiceImpl implements AirViewerUserService  {

    @Autowired
    private AirViewerUserDao airViewerUserDao;

    @Override
    public AirViewerUser selectByOpenidAndState(String openid) {
        return airViewerUserDao.selectByOpenidAndState(openid);
    }

    @Override
    public AirViewerUser selectByUsername(String username) {
        return airViewerUserDao.selectByUsername(username);
    }

    @Override
    public void save(AirViewerUser currentUser) {
        airViewerUserDao.insert(currentUser);
    }

    @Override
    public List<AirViewerUser> findAllList() {
        return airViewerUserDao.findAllList();
    }
}